/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.nio.FloatBuffer;
/*    */ import java.util.ArrayList;
/*    */ import org.lwjgl.opengl.GL11;
/*    */ 
/*    */ public class xx
/*    */ {
/*    */   public fu[] w;
/*    */   public zw[] q;
/*    */   public jx g;
/*    */   
/*    */   public xx(fu[] arrayOfFu, zw[] arrayOfZw) {
/* 14 */     this.w = arrayOfFu;
/* 15 */     this.q = arrayOfZw;
/*    */   }
/*    */   
/*    */   public xx(xx xx1, ArrayList<fu> arrayList) {
/* 19 */     this.w = new fu[xx1.w.length];
/* 20 */     for (int i = 0; i < this.w.length; i++) {
/* 21 */       this.w[i] = arrayList.get((xx1.w[i]).t);
/*    */     }
/* 23 */     this.q = new zw[xx1.q.length];
/* 24 */     System.arraycopy(xx1.q, 0, this.q, 0, this.q.length);
/* 25 */     if (xx1.g != null) {
/* 26 */       this.g = xx1.g;
/*    */     }
/*    */   }
/*    */   
/*    */   public void v(boolean bool) {
/* 31 */     if (!bool && this.g == null) {
/* 32 */       this.g = v();
/*    */     }
/* 34 */     for (int i = 0; i < 3; i++) {
/* 35 */       GL11.glTexCoord2f((this.q[i]).q, (this.q[i]).g);
/* 36 */       if (!bool) {
/* 37 */         GL11.glNormal3f(this.g.w, this.g.q, this.g.g);
/*    */       } else {
/* 39 */         GL11.glNormal3f((this.w[i]).d, (this.w[i]).z, (this.w[i]).i);
/*    */       } 
/* 41 */       GL11.glVertex3d((this.w[i]).w, (this.w[i]).q, (this.w[i]).g);
/*    */     } 
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public jx v() {
/* 53 */     float f1 = ((this.w[0]).d + (this.w[1]).d + (this.w[2]).d) / 3.0F;
/* 54 */     float f2 = ((this.w[0]).z + (this.w[1]).z + (this.w[2]).z) / 3.0F;
/* 55 */     float f3 = ((this.w[0]).i + (this.w[1]).i + (this.w[2]).i) / 3.0F;
/*    */     
/* 57 */     return new jx(f1, f2, f3);
/*    */   }
/*    */   
/*    */   public void v(FloatBuffer floatBuffer1, FloatBuffer floatBuffer2, FloatBuffer floatBuffer3, boolean bool, float f) {
/* 61 */     if (!bool && this.g == null) {
/* 62 */       this.g = v();
/*    */     }
/* 64 */     for (int i = 0; i < 3; i++) {
/* 65 */       floatBuffer2.put((this.q[i]).q);
/* 66 */       floatBuffer2.put((this.q[i]).g);
/* 67 */       if (!bool) {
/* 68 */         floatBuffer3.put(this.g.w);
/* 69 */         floatBuffer3.put(this.g.q);
/* 70 */         floatBuffer3.put(this.g.g);
/*    */       } else {
/* 72 */         floatBuffer3.put(this.w[i].h(f));
/* 73 */         floatBuffer3.put(this.w[i].z(f));
/* 74 */         floatBuffer3.put(this.w[i].v(f));
/*    */       } 
/* 76 */       floatBuffer1.put(this.w[i].s(f));
/* 77 */       floatBuffer1.put(this.w[i].y(f));
/* 78 */       floatBuffer1.put(this.w[i].t(f));
/*    */     } 
/*    */   }
/*    */   
/*    */   public void v(FloatBuffer floatBuffer1, FloatBuffer floatBuffer2, boolean bool, float f) {
/* 83 */     if (!bool && this.g == null) {
/* 84 */       this.g = v();
/*    */     }
/* 86 */     for (int i = 0; i < 3; i++) {
/* 87 */       if (!bool) {
/* 88 */         floatBuffer2.put(this.g.w);
/* 89 */         floatBuffer2.put(this.g.q);
/* 90 */         floatBuffer2.put(this.g.g);
/*    */       } else {
/* 92 */         floatBuffer2.put(this.w[i].h(f));
/* 93 */         floatBuffer2.put(this.w[i].z(f));
/* 94 */         floatBuffer2.put(this.w[i].v(f));
/*    */       } 
/* 96 */       floatBuffer1.put(this.w[i].s(f));
/* 97 */       floatBuffer1.put(this.w[i].y(f));
/* 98 */       floatBuffer1.put(this.w[i].t(f));
/*    */     } 
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\xx.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */